/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.mine.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 采集点信息Entity
 * @author developer
 * @version 2018-11-05
 */
public class Point extends DataEntity<Point> {
	
	private static final long serialVersionUID = 1L;
	private Double position;		// 位置
	private String composition;		// 检测成分
	private String holeId;		// 采集孔编号
	private String roadwayId;		// 巷道编号
	private String mineId;		// 矿井编号
	
	public Point() {
		super();
	}

	public Point(String id){
		super(id);
	}

	public Double getPosition() {
		return position;
	}

	public void setPosition(Double position) {
		this.position = position;
	}
	
	@Length(min=0, max=255, message="检测成分长度必须介于 0 和 255 之间")
	public String getComposition() {
		return composition;
	}

	public void setComposition(String composition) {
		this.composition = composition;
	}
	
	@Length(min=1, max=64, message="采集孔编号长度必须介于 1 和 64 之间")
	public String getHoleId() {
		return holeId;
	}

	public void setHoleId(String holeId) {
		this.holeId = holeId;
	}
	
	@Length(min=0, max=64, message="巷道编号长度必须介于 0 和 64 之间")
	public String getRoadwayId() {
		return roadwayId;
	}

	public void setRoadwayId(String roadwayId) {
		this.roadwayId = roadwayId;
	}
	
	@Length(min=0, max=64, message="矿井编号长度必须介于 0 和 64 之间")
	public String getMineId() {
		return mineId;
	}

	public void setMineId(String mineId) {
		this.mineId = mineId;
	}
	
}